



<html>
    <head>
        <title>CMD.HTML</title>
        <script>
function _(id) {
    return document.getElementById(id);
}

function send(str) {
    //alert(str);
    cmd = str.split(' ', 1)[0];
    args = str.slice(cmd.length + 1);
    //alert(cmd + ": " + args);
    request = new XMLHttpRequest();
    request.onreadystatechange = cmdListHandler;
    request.open('GET', '/abc', true);
    request.send(null);
}

function cmdListHandler() {
    if(request.readyState == 4) {
        _("debug").innerHTML += request.responseText;
        send('');
    }
}

send('');
        </script>
    </head>
<body>


<div id="debug"></div>

</body>
</html>
